import request from "@/utils/request";

// 获取 频道分类列表 api接口
export function channels() {
  return request({
    url: "/v1_0/channels",
    type: "get",
  });
}

// 获取 频道头条详情列表的 api接口
export function articles(id) {
  return request({
    url: `/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`,
  });
}
